#ifndef GAMMACOLORINFO_H
#define GAMMACOLORINFO_H
#include <QDBusArgument>

struct ColorInfo{
    QString arg;
    QDBusVariant out;
};

inline QDBusArgument &operator<<(QDBusArgument &argument, const ColorInfo &mystruct)
{
    argument.beginStructure();
    argument << mystruct.arg << mystruct.out;
    argument.endStructure();
    return argument;
}

inline const QDBusArgument &operator>>(const QDBusArgument &argument, ColorInfo &mystruct)
{
    argument.beginStructure();
    argument >> mystruct.arg >> mystruct.out;
    argument.endStructure();
    return argument;
}

Q_DECLARE_METATYPE(ColorInfo)
#endif // GAMMACOLORINFO_H
